import request from '@/api/socialized-servce/index.js' //引入http.js
const api = request
export default {
	// 用户端----------------------
	// 查询咨询量
	queryConsultationVolume(params) {
		let url = 'base/fishVariety/queryByCondition'
		return api.request(url,'post',{
			...params
		})
	},
	// 继续申请咨询
	continueApplyConsultation() {
		let url = 'base/fishVariety/queryByCondition'
		return api.request(url,'post',{
			...params
		})
	},
	// 提交预约
	submitAppointment(params) {
		let url = 'expert/doorToDoor/add'
		return api.request(url,'post',{
			...params
		})
	},
	// 查询我的预约
	queryMyOrderList(params) {
		let url = 'expert/doorToDoor/queryPageByCondition'
		return api.request(url,'post',{
			...params
		})
	},
	// 用户取消服务
	userCancelService(params) {
		let url = 'expert/doorToDoor/cancelServiceByUser'
		return api.request(url,'post',{
			...params
		})
	},
	// 用户确认取消
	useConfirmCancel(params) {
		let url = 'expert/doorToDoor/confirmCancelByUser'
		return api.request(url,'post',{
			...params
		})
	},
	// 用户确认完成服务
	userConfirmFinshed(params) {
		let url = 'expert/doorToDoor/confirmComplete'
		return api.request(url,'post',{
			...params
		})
	},
	
	// 专家端--------------------------
	
	// 接单or不接单
	expertReceiveOrder(params) {
		let url = 'expert/doorToDoor/receiveOrder'
		return api.request(url,'post',{
			...params
		})
	},
	// 专家取消服务
	expertCancelService(params) {
		let url = 'expert/doorToDoor/cancelServiceByExpert'
		return api.request(url,'post',{
			...params
		})
	},
	// 专家点击完成服务
	expertConfirmService(params) {
		let url = 'expert/doorToDoor/completeService'
		return api.request(url,'post',{
			...params
		})
	},
	// 专家确认用户端取消服务
	expertConfirmUserCancel(params) {
		let url = 'expert/doorToDoor/confirmCancelByExpert'
		return api.request(url,'post',{
			...params
		})
	}
}